package com.bdqn.mapper;

import com.bdqn.mybatis.IMapper;
import com.bdqn.pojo.User;

/**
 * UserMapper
 *
 * @author
 * @since
 */
public interface UserMapper extends IMapper<User> {

    //根据用户名查询用户对象(Shiro)
    public User findUserByUsrName(String usrName);

    /**
     * 根据SysUser表ID查询两表的数据
     * @param usrId
     * @return
     */
    User getUserById(Long usrId);

    /**
     * 通过用户特征查找用户
     *
     * @param user
     * @return
     */
    User getUser(User user);
}
